package com.learn.java.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TestEventHandler extends EventAdapter<TestEvent>{


    @Override
    public boolean process(TestEvent e) {

      log.info("==================== 收到测试事件:{} ===================",e.getName());

      return true;
    }


}
